<?php 
	include_once("pages/config_page/header.php"); //Header
	
	 //body	
	foreach($_REQUEST as $___opt => $___val){
			$$___opt = $___val;
	}	
	if(empty($p)){
		include("pages/config_page/body.php");		
	}
	elseif(substr($p,0,4) == "http" or substr($p,0,1) == "/" or substr($p, 0, 1) == "." or !file_exists("pages/". $p . ".php")){
		include("pages/config_page/body.php");
	}
	else{
		include("pages/$p.php");
	}
	
	include_once("pages/config_page/footer.php"); //footer	
?>
   